import Vue from 'vue'
import Router from 'vue-router'


import message from '@/components/page/message'
import notice from '@/components/page/notice'
import details from '@/components/page/details'
import search from '@/components/page/search'

Vue.use(Router)

export default new Router({
  routes: [
    {
        path: '/',
        name: 'message',
        component: message,
        meta:{title:'列表页面'}
    },
    {
        path: '/message',
          name: 'message',
          component: message,
          meta: { title: '列表页面' }
    },
    {
        path: '/notice',
        name: 'notice',
        component: notice
    },
    {
        path: '/details',
        name: 'details',
        meta: { title: '详情' },
        component: details
    },
    {
        path: '/search',
        name: 'search',
        meta: { title: '搜索' },
        component: search
    }
  ]
})
